﻿using Ewell.BizComponent.UI.Charge.Windows;
using Ewell.BizComponent.UI.Core.Model;
using Ewell.BizComponent.UI.Person.Windows;
using Ewell.BizComponent.UI.Reg.Windows;
using Ewell.BizComponent.UI.Reserve.Windows;
using Ewell.BizComponent.UI.SearchPersonCom.Windows;
using Ewell.Interface.Common.Constant;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Ewell.BizComponent.UI.Main.Views
{
    /// <summary>
    /// MenuView.xaml 的交互逻辑
    /// </summary>
    public partial class MenuView : UserControl
    {
        /// <summary>
        /// 挂号窗体
        /// </summary>
        public OutRegWindow outRegWindow { get; set; }
        /// <summary>
        /// 收费窗体
        /// </summary>
        public ChargeWindow chargeWindow { get; set; }
        public EncounterReserveWindow encounterReserveWindow { get; set; }
        public CreatePersonWindow createPersonWindow { get; set; }
        public MenuView()
        {
            InitializeComponent();
        }

        private void RegisterClick(object sender, RoutedEventArgs e)
        {
            outRegWindow = new OutRegWindow();
            outRegWindow.Show();
        }

        private void ChargeClick(object sender, RoutedEventArgs e)
        {
            chargeWindow = new ChargeWindow();
            chargeWindow.Show();
        }

        private void ReserveClick(object sender, RoutedEventArgs e)
        {
            encounterReserveWindow = new EncounterReserveWindow();
            encounterReserveWindow.Show();
        }

        private void CreatePersonClick(object sender, RoutedEventArgs e)
        {
            createPersonWindow = new CreatePersonWindow();
            createPersonWindow.Show();
        }

        private void TestClick(object sender, RoutedEventArgs e)
        {
            SearchPersonComWindow searchPersonComWindow = new SearchPersonComWindow();
            searchPersonComWindow.Show();
        }
    }
}
